home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / SRS / server / include / data.h next >
Encoding:
C/C++ Source or Header  |  2000-01-12  |  1.7 KB  |  60 lines

  1. /* ---- global data ----- */
  2.  
  3. #ifndef _DATA_H
  4. #define _DATA_H
  5.  
  6. __BEGIN_DECLS
  7.  
  8. extern int mainfd;                   /* main fd to listen on... */
  9. extern int mainpid;                  /* super-server pid        */
  10.  
  11. extern int child;                    /* is a child running?     */  
  12.  
  13. extern int locPort;                  /* local port to bind to   */
  14.  
  15. extern int nullfd;                   /* /dev/null for stdtin    */
  16.  
  17. extern int dblogfd;                  /* file to log messages to */
  18. extern FILE *dblogfd1;
  19.  
  20. extern int errlogfd;                 /* file to write errors to */
  21. extern FILE *errlogfd1;
  22.  
  23. extern int curlogfd;                 /* index into logs[]       */
  24.  
  25. extern char *errorFile;              /* error log file          */
  26. extern char *servListFile;           /* ptr to servlist fname   */
  27.  
  28. extern struct sockaddr_in laddr;     /* our local addr struct.  */
  29.  
  30. extern int curPid;    /* index into pidstats[] */
  31. extern int curClient; /* index into clients[]  */
  32. extern struct client clients[MAXCONNS];
  33.  
  34. extern int repcount;
  35. extern long prevlogtime;
  36. extern char prevlogmsg[MAXLOGSIZE];
  37.  
  38. #ifndef NOSSL
  39. extern DH *dhparms; /* holds DH parameters */
  40. #endif
  41.  
  42. extern int prevmsg; /* previous msg type */
  43.  
  44. extern struct passwd *pwd;
  45.  
  46. extern int errors;  /* indicates an error occured */
  47. extern int silent;  /* in silent mode.. no output */
  48.  
  49. extern volatile sig_atomic_t nofree;  /* error finding structure   */
  50. extern volatile sig_atomic_t stopped; /* set to 1 when wecan't run */
  51. extern volatile sig_atomic_t timeout; /* set to 1 when we timeout  */
  52.  
  53. extern volatile int debugging; /* are we in debugging mode? */
  54.  
  55. extern jmp_buf doquit, newconn; /* places to jump */
  56.  
  57. __END_DECLS
  58.  
  59. #endif /* _DATA_H */
  60.